﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AgentTest
{

    [Serializable]
    public class Utility
    {
      static public decimal ConvertBytes(ulong b, int iteration)
       {
           long iter = 1;
           for (int i = 0; i < iteration; i++)
               iter *= 1024;
           return Math.Round((Convert.ToDecimal(b)) / Convert.ToDecimal(iter), 2, MidpointRounding.AwayFromZero);
       }
    }
}
